package cn.fivestars.springcloud.order.lb;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * 自定义负载均衡算法
 *
 * @author liangchenzhou1024 @163.com
 * @date 2021 /2/4
 */
public interface LoadBalancer {

    /**
     * Instances service instance
     *
     * @param serviceInstanceList service instance list
     * @return the service instance
     */
    ServiceInstance getInstance(List<ServiceInstance> serviceInstanceList);
}
